package com.example.date;

import com.example.util.DateUtils;

import java.time.LocalDateTime;

public class DateTest {

    public static void main(String[] args) {
        // 测试代码
        LocalDateTime startDate = LocalDateTime.of(2025, 1, 5, 0, 0);
        LocalDateTime endDate = LocalDateTime.of(2025, 1, 6, 18, 13);

        long weeksDifference = DateUtils.calculateWeeksDifference(startDate, endDate);
        System.out.println("Weeks Difference: " + weeksDifference);  // 应输出 1
    }
}
